package com.jiepu.daily.corejava.advanceed.part2.day0724;

import org.jetbrains.annotations.NotNull;

import java.util.List;

/**
 * @Description:
 * @author: xinjie.txt
 * @date: 2020/7/24  8:32
 */
public class Demo2<T> {
	public void fum() {
	}

	@SuppressWarnings("hiding")
	public <T> T T(@NotNull T t) {
		List<T>[] T;
		System.out.println(t.getClass().getName());
		return t;
	}

	public <F> void fun(@NotNull F f) {
		System.out.println(f.getClass().getName());
	}


	public static void main(String[] args) {
		Demo2<String> d = new Demo2<>();
		d.fun("52");
		d.<Integer>fun(123);
	}
}
